package com.jason.java.lib;

/**
 * Description:BaseDataType
 *
 * @author jason
 * @create 2020/9/1 20:19
 */
public class BaseDataType {

  public static void main(String[] args) {

    int i = 11;
    int j = 11;

    Integer integer1 = new Integer(11);
    Integer integer2 = new Integer(11);
    Integer integer3 = new Integer(13);

    Integer a = 13;
    Integer b = 13;

    String s1 = "jason";
    String s2 = "jason";
    String str1 = new String("jason");
    String str2 = new String("jason");

    System.out.println("i==j:" + (i == j));
    System.out.println("i==integer2:" + (i == integer2));
    System.out.println("integer1==integer2:" + (integer1 == integer2));
    System.out.println("integer3==b:" + (integer3 == b));
    System.out.println("a==b:" + (a == b));

    System.out.println("s1==s2:" + (s1 == s2));
    System.out.println("s1==str1:" + (s1 == str1));
    System.out.println("str1==str2:" + (str1 == str2));
  }

}
